﻿@model Unijovem.UI.Models.EnqueteModel


<script type="text/javascript">
    $(function () {
        $("#@string.Concat("DivA", Model.Id)").mouseover(function(){$("#@string.Concat("AlternativaA", Model.Id)").show();});
        $("#@string.Concat("DivB", Model.Id)").mouseover(function(){$("#@string.Concat("AlternativaB", Model.Id)").show();});
        $("#@string.Concat("DivC", Model.Id)").mouseover(function(){$("#@string.Concat("AlternativaC", Model.Id)").show();});
        $("#@string.Concat("DivD", Model.Id)").mouseover(function(){$("#@string.Concat("AlternativaD", Model.Id)").show();});

        $("#@string.Concat("DivA", Model.Id)").mouseout(function(){$("#@string.Concat("AlternativaA", Model.Id)").hide();});
        $("#@string.Concat("DivB", Model.Id)").mouseout(function(){$("#@string.Concat("AlternativaB", Model.Id)").hide();});
        $("#@string.Concat("DivC", Model.Id)").mouseout(function(){$("#@string.Concat("AlternativaC", Model.Id)").hide();});
        $("#@string.Concat("DivD", Model.Id)").mouseout(function(){$("#@string.Concat("AlternativaD", Model.Id)").hide();});
    });
</script>
<div style="margin: 8px 5px 8px 0;">
    @Model.Pergunta
</div>           

<div class="divExternaEnquete" id="@string.Concat("DivA", Model.Id)">
    <div class="divInternaEnquete" style="width:@Model.PercentualAlternativaA%;"></div>
    <span style="position: absolute;">&nbsp;A - @Model.AlternativaA</span>
    <span style="float:right; display:none; position:relative;" id="@string.Concat("AlternativaA", Model.Id)">@Model.QuantidadeAlternativaA&nbsp;voto(s)</span>
</div>
<div class="divExternaEnquete" id="@string.Concat("DivB", Model.Id)">
    <div class="divInternaEnquete" style="width:@Model.PercentualAlternativaB%;"></div>
    <span style="position: absolute;">&nbsp;B - @Model.AlternativaB</span>
    <span style="float:right; display:none; position:relative;" id="@string.Concat("AlternativaB", Model.Id)">@Model.QuantidadeAlternativaB&nbsp;voto(s)</span>
</div>
<div class="divExternaEnquete" id="@string.Concat("DivC", Model.Id)">
    <div class="divInternaEnquete" style="width:@Model.PercentualAlternativaC%;"></div>
    <span style="position: absolute;">&nbsp;C - @Model.AlternativaC</span>
    <span style="float:right; display:none; position:relative;" id="@string.Concat("AlternativaC", Model.Id)">@Model.QuantidadeAlternativaC&nbsp;voto(s)</span>
</div>
<div class="divExternaEnquete" id="@string.Concat("DivD", Model.Id)">
    <div class="divInternaEnquete" style="width:@Model.PercentualAlternativaD%;"></div>
    <span style="position: absolute;">&nbsp;D - @Model.AlternativaD</span>
    <span style="float:right; display:none; position:relative;" id="@string.Concat("AlternativaD", Model.Id)">@Model.QuantidadeAlternativaD&nbsp;voto(s)</span>
</div>
